package com.cqjtu.graduation.service;

import com.cqjtu.graduation.entity.FoodTypeListDO;
import com.cqjtu.graduation.entity.OrderDO;

import java.util.List;

/**
 * 订单业务接口
 * @author yhl
 */
public interface OrderDOService {
    /**
     * 生成订单
     * @param orderDO
     */
    public void addOrderDO(OrderDO orderDO);

    /**
     * 列出所有未支付订单
     * @param orderDO
     */
    public List<OrderDO> listOrderDONoPaid(OrderDO orderDO);
    public Long conuntNoPaidOrderByCondition(OrderDO orderDO);
    public void payOffOrder(OrderDO orderDO);
    public OrderDO getOrderById(OrderDO orderDO);

    /**
     * 查询订单中菜品烹制状态
     * @return
     */
    public List<OrderDO> findOrderFoodStatus();


    /**
     * 查询订单中餐桌号
     * @return
     */
    List<OrderDO> findTableNumber();

    /**
     * 根据订单号查询菜品清单
     * @param orderId
     * @return
     */
    List<FoodTypeListDO> findFoodType(Integer orderId);
}
